﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using SQLHelper;

public partial class admin_Mail_Ask : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Create(object sender, EventArgs e)
    {
        string skills = TextBox1.Text.ToString().Trim();
        string contents = TextBox2.Text.ToString().Trim();
        int id = Master.UserID;
        string sql = "insert into ask (skills,contents,user_id) values('" + skills + "','" + contents + "'," + id + ")";
        DB.GetDataNoQuery(sql);
        DB.ColseSqlCon();
        Label1.Text = "提交成功，请耐心等待";
    }
}